package com.zp.drug.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zp.common.core.entity.TreeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 药品功效类别字典对象 drug_class_dict
 *
 * @author zhang peng
 * @ date 2023-05-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("drug_class_dict")
public class DrugClassDict extends TreeEntity<DrugClassDict> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private String id;

    /**
     * 类别代码
     */
    private String classCode;

    /**
     * 类别名称
     */
    private String className;

    /**
     * 所有父级编号
     */
    private String parentIds;

    /**
     * 标志
     */
    @TableLogic
    private String delFlag;
    /**
     * 备注信息
     */
    private String remarks;
    /**
     * 排序
     */
    private int sort;

    public void initEntity () {
        this.delFlag = "0";
    }


}
